package com.hk.mapper;

import com.hk.model.ProductMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: zhe
 * @Date: 2021/6/18 17:01
 * @Statement: 产品菜单Mapper层接口
 */
public interface IProductMenuMapper extends IBaseMapper<ProductMenu> {

    @Override
    List<ProductMenu> findAll(ProductMenu productMenu);

    @Override
    int count(ProductMenu productMenu);

    @Override
    ProductMenu findById(Integer id);

    List<ProductMenu> findByParentId(@Param("ids") List<Integer> ids);

    @Override
    int save(ProductMenu productMenu);

    @Override
    int update(ProductMenu productMenu);

    int updateParentId(ProductMenu t);

    @Override
    int delete(Integer id);

    int deleteIds(@Param("ids") List<Integer> ids);
}
